package com.dave.gd.core.base.service;

import java.io.InputStream;
import java.util.Map;

@SuppressWarnings("rawtypes")
public interface IFileService extends IGenericService {
    public static final String SUCCESS = "success";
    public static final String ERROR   = "error";
    public static final String STATUS  = "status";
    
    /**
     * 
     * @Title: saveFile
     * @Description: 保存文件
     * @param @param parms action获取的参数Map
     * @param @return 设定文件 结果信息
     * @return String 返回类型
     * @throws
     */
    public abstract void saveFile(Map<String, Object> parms);
    
    public abstract void saveFile(String uploadPath, Map<String, Object> parms);
    
    public abstract InputStream readFile(String savePath, String name);
    
    public abstract InputStream readFile(String name);
    
}
